package com.foreveross.testproxy.test;

import com.foreveross.testproxy.test.impl.DefaultIPTestImpl;
import com.foreveross.testproxy.test.impl.TianxunIPTestImpl;

/**
 * Created by Bright on 16/3/1.
 * IP检测工厂.
 */
public class IPTestFactory {

    private static IPTestFactory instance;

    private IPTestFactory() {

    }

    public static IPTestFactory getInstance() {
        if (instance == null) {
            instance = new IPTestFactory();
        }
        return instance;
    }


    /**
     * 获取默认IP检测器.
     * @return
     */
    public static IPTester getDefaultTester() {
        return new DefaultIPTestImpl();
    }

    /**
     * 获取天巡IP检测器.
     *
     * @return
     */
    public static IPTester getTianxunTester() {
        return new TianxunIPTestImpl();
    }

}
